package com.example.controller;

import com.example.service.DisplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: DisplayController
 * @description:
 * @author: Luzhiming
 * @Date:2019/4/12 9:16
 **/
@RestController
@ConfigurationProperties(prefix = "index")
public class DisplayController {

    @Autowired
    private DisplayService service;

    @RequestMapping("/get")
    public String get(String param){
        return service.get(param);
    }

    @RequestMapping("/jenkins")
    public String jenkins(){
        return "springboot项目使用jenkins发布";
    }
}
